 |
 |
 |
 |
#137125 - 06/20/01 04:43 PM
[6.0x] Introducing: UBBNews 2!
|
Member
Registered: 03/14/00
Posts: 213
Loc: Kuwait ( q8 )
|
UBBNews 2.0: This new version is a rewrite version with a major feature called 'news sessions', I'll discuss it later. Please note that this version is beta. So you may report any problems HERE ( don't email me ). News Sessions: Suppose you've got forums A,B,C,D and you want to display the forums A and B topics on a page and the forums C,D on another page and you want them to have compeletly different configuration settings ( max topics, characters limit , status , style template ). With News Sessions that's possible! You can create many news sessions as you like from the CP with different settings and different forums to grab topics from, and to get a specific news session's content via URL, you simpely do this: ubbnews.cgi?ns_id=NEWS_SESSION_ID . The id's are displayed in the control panel. Practical Example: We've created a news session from the CP with the forums A,B,C and the id was #2, we want to display the news on these forums so we simply make an SSI call with: ubbnews.cgi?ns_id=2 So, give it a try and report dozons of errors as usual Download here .
_________________________
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#137132 - 06/20/01 06:19 PM
Re: [6.0x] Introducing: UBBNews 2!
|
Member
Registered: 02/21/00
Posts: 5533
Loc: My Room
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#137140 - 06/21/01 05:52 AM
Re: [6.0x] Introducing: UBBNews 2!
|
Member
Registered: 03/14/00
Posts: 213
Loc: Kuwait ( q8 )
|
Well, I've updated the hack, here are the fixes, new features:
1. When I was developing the hack, I added the hashes to the use vars statement in cp.cgi but forgot to mention that in the installation file, this is now fixed. 2. Applied MM's fix. 3. Added 'View Headlines Only' feature, you can enable it from the news session addition/modification page. It will show only the forum,topic subject and the posting date of the topic ( like Ted's old news grabber ). 4. Minor changes in the templates to be more ubb-style compatible. 5. Minor change in the wordlets file, actually there was a typo in one of the hash keys.
To update, just perform the first new step of the cp.cgi instructions and reupload all files.
For those who want to upgrade from previous versions, you must uninstall the old hack, install the new one and create a new session that matches your old settings.
Allen, the instructions for creating the new directory are already there ( in the 'preparing for install' section ).
_________________________
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#137142 - 06/21/01 11:33 AM
Re: [6.0x] Introducing: UBBNews 2!
|
Member
Registered: 05/23/01
Posts: 2685
Loc: » Ü § Ĺ «
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#137143 - 06/21/01 12:01 PM
Re: [6.0x] Introducing: UBBNews 2!
|
I type Like navaho
Registered: 03/10/00
Posts: 25580
Loc: Texas
|
Sorry Bond, I missed that, was just reading the bottom..:) On our front page I am using it in the upper right column as a "semi-replacement" for active.cgi. The topics aren't updating with the changes in the forums, any idea? It sounds like it is reading the cache when first built and not when the threads update in the forums. Also, when selecting more than one forum to read from, it pulls the latest howevermany topics you input from each forum, not that number (ex.: 4) from all the forums as a group... your news is gonna be huge if you select more than 1-2 topics and more than 1 forum to read them from  Another suggestion, the option to enclose the headlines in one $TBT / $TBB type table so that if we include the headlines below the main announcements, they aren't just left our there all alone  I attempted to do this myself with varying results, most all of them very bad.  Other than that, excellent work Bond!
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#137157 - 06/21/01 07:12 PM
Re: [6.0x] Introducing: UBBNews 2!
|
Member
Registered: 06/05/01
Posts: 70
|
Yes this works perfectly well, but if not if i implement the code in a website. I have triad to put it in the General Display Settings "Forum Intro Text" box, just as a try, but when I call the forum summary site, all I just see is the actual codeline <!--#exec cgi="cgi-bin/ubbnews.cgi?ns_id=2" --> and not the content of it. But as you say, browse directly to it works well....exerpt from a few bugs. As soma0 says; 1) Using "headline only mode", the names of the forums don't match up to where the links take you. The message topics are correct though. - I discovered this too. I found that if I have the Category View, and in Forum Settings have numbered to different forums as number 1, e.g. if both are forum number 1 in two different Categories, the newscript get confused. I solved this by giving each forum a unik number in the Forum Setting Page
2) Using "Show full topic", 1 out of every 5 or so topics cuts off to early, breaking the table and looking bad. And the topics don't link to anything, and the replies line is incomplete. - Here I dont see any topic content at all, just the topic header, but the tables are perfect. The vertical size of the table increase if there are answers to the topic, but as I say, none of the content shows up.
4) The Limit Characters seems to start counting from the begining of the header. Can we get this to count from the beginning of the message body? - As nothing of the topic/message content shows up, I am not abel to determine iif this works or not
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#137182 - 06/27/01 12:44 PM
Re: [6.0x] Introducing: UBBNews 2!
|
Member
Registered: 05/12/01
Posts: 176
Loc: Hannover
|
Ok, here I am again. There is one bug in UBBNews 2, that was also in the version before : I have a forum called "News" and another called "Marktplatz". News is Nr. 8, Marktplatz is Nr. 7, but News is Order Nr. 1 and Marktplatz Order Nr. 8 When I chose News for UBBNews, I always get the content of Forum Nr. 8 displayed, but it shows me the title of Forum Order Nr. 8. Then I have a second question - can I add something around UBBNews by modifying ubbnews.cgi here : Can I put some html in there ? Thanks for yourhelp Dennis
_________________________
Regards Dennis Bode ----------------------------- Webmaster of Hardwareluxx.com
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#137183 - 06/27/01 07:46 PM
Re: [6.0x] Introducing: UBBNews 2!
|
Member
Registered: 03/14/00
Posts: 213
Loc: Kuwait ( q8 )
|
Guys, I admit it: I'm dumb  AS a result of misunderstanding how forums numbers are stored in the UBB, I admit that I choosed the order field to get the forums titles which caused slight problems with some users  . However, the solution is simple, simply open up ubbnews.cgi, look for: Replace with: Find: Replace with: I'm sorry! The zip file has been updated. Dennis, you can print anything after that statement, just make sure that you assign it to the $output variable if you want it to be cached. <FONT COLOR="#000000" SIZE="1">[ June 27, 2001 08:01 PM: Message edited by: JB007 ]</font>
_________________________
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#137185 - 06/28/01 05:50 AM
Re: [6.0x] Introducing: UBBNews 2!
|
Member
Registered: 05/12/01
Posts: 176
Loc: Hannover
|
Hi again, I tried to add some html using Of course, when I add text etc, everything works, but when I add " for example, it will not work... Is there a possible solution to add a whole complex html (like the header in my ubb...) Thanks Dennis
_________________________
Regards Dennis Bode ----------------------------- Webmaster of Hardwareluxx.com
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#137201 - 07/09/01 01:34 AM
Re: [6.0x] Introducing: UBBNews 2!
|
Member
Registered: 05/12/01
Posts: 176
Loc: Hannover
|
Hi again, please look at my modified UBBNews : http://www.hardwareluxx.com You will see it correctly when you use Internet Explorer, but you won´t see UBBNews when you use Netscape. That´s because I need to place a /table tag somewhere at the end in ubbnews.cgi - but where ? I tried everywhere, but wherever I place the print "</table>", it doesn´t work... Can anyone tell me where I have to place it? Thanks very much ! Dennis
_________________________
Regards Dennis Bode ----------------------------- Webmaster of Hardwareluxx.com
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#137222 - 07/30/01 12:13 AM
Re: [6.0x] Introducing: UBBNews 2!
|
Member
Registered: 07/05/01
Posts: 109
|
I have hacked everything right. when I call directly from the browser it works fine, but when I insert a SSI call it gives me this, " HTTP/1.1 404 Object Not Found Server: Microsoft-IIS/5.0 Date: Mon, 30 Jul 2001 08:02:07 GMT Content-Type: text/html 404 Object Not Found " , I tihnk I know why, its not my host because I can use news pro fine. but I can't use this, is the reason because I have my UBB hosted on forum.undertakerinc.org, and my site on underinc.org, so my SSI call looks like ( <!--#include virtual="forum.undertakerinc.org/cgi-bin/ubb/ubbnews.cgi?ns_id=1" --> ), if you go directly to my news you can see it, but the text is black, any reson on why thats happened, if someone can help me out that would be good
thanks in adavance.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#137231 - 08/09/01 03:24 AM
Re: [6.0x] Introducing: UBBNews 2!
|
Junior Member
Registered: 04/23/01
Posts: 3
|
I already asked this somewhere elkse but didn't get a reply :-( Is it possible to change the UBBnews script into something like Webwereld site ? (in Dutch, but you'll know what I mean, click on 19 reacties in the yellow bar) So the reactions are more or less seperated from the board... Anybody can use there own newsscripts but use the reaction (and usernames) from UBB. JB007, I like your script, but I hope you can modify it for general newssytems as well ! P.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#137254 - 01/24/02 03:21 PM
Re: [6.0x] Introducing: UBBNews 2!
|
Member
Registered: 03/23/01
Posts: 53
Loc: Troy, MI
|
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif">Originally posted by XPerT: I have the same problem with this hack as I do the Latest Threads. When I use the #exec cgi statement on IIS 5 I get nothing, just a blank. I can run the page manually in my browser and it works fine.
An include virtual shows the cgi code...
Still hoping for an answer on how to make this work on IIS!</font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">
First off, if you already haven't done this, save the file as shtml. Secondly, in IIS, you need to make the file writeable and executable. Set execute permssions to scripts and executables. You may need to play around in IIS, since I totally forgot what voodoo raindance song I had to sing to get SSI to work. I had the exact same problems.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#137255 - 02/28/02 12:18 AM
Re: [6.0x] Introducing: UBBNews 2!
|
Junior Member
Registered: 02/22/02
Posts: 6
Loc: Raleigh, NC
|
If you search the Microsoft Knowledge Base (heck, do a deja.com search on "IIS SSI enable") you should find a step-by-step document on enabling SSI on IIS 4.0 and 5.0. The trick is usually to make sure all file extensions are parsed by the SSI or ASP dll rather than html files not being parsed, as well as cgi files. On my IIS 4.0 box, the hack worked almost perfectly right out of the box...
The only thing that doesn't seem to work is the option as to whether I want the summary count to apply to all forums selected or to each enumerated forum... no matter what I pick (yes/no) when I return to the control pannel and pull up the UBBNews options, I get neither box selected and the code always defaults to "no".
Some suggestions / request I was going to make (and I may try and get ambitious and see if I can figure out how to do it myself) are:
1. Allow a third summary option that takes the first X characters, not including the title of the forum or the date, but perhaps includes the user name so that one could show "UserXyZ was heard saying "blah, blah, blah..." and so forth...
2. Allow an option that actually scans ALL active non-private forums and picks the X newest posts or replies from ALL the forums, kind of like the daily summary does (but without resetting at midnight and with a configurable X number).
3. Create a better interface for selecting the forums. Opening two screens in the CP to make a list of all the forums to be included, guaging which ones should be (the most active ones or the ones you most want to promote) would be great... i.e., perhaps a list with checkboxes of all the forums active unerneath, with a # of posts, replies, and date of last activity, so one can then just check the checkboxes and when pressing Save Settings, those forums get added (instead of the one line "type in all the forum numbers you want to include, with a space between each" that is featured now.
In any case, this is a very nice hack, is going to either completely solve my issue or give me sufficient basis to modify it to suit my needs.
Thanks, JB. And thanks to LK and dj in helping me find it via email in the first place.
Mario Kroll Wargamer.com
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|